home *** CD-ROM | disk | FTP | other *** search
- 100 cls: key off: on error goto 110: goto 120
- 110 print "error: check data": key on: close: end
- 120 print "place disk in drive a for errlev.com"
- 130 print "---then hit <enter>": dummy$=input$(1)
- 140 print: print "reading data statements..."
- 150 restore: read total, check#
- 160 for I=1 to total: read byte: sum#=sum#+byte
- 162 tally#=tally#+1
- 165 rem: print sum#, check#, tally#, total
- 166 next I
- 170 if check# <> sum# then 110
- 180 print "writing a:errlev.com file..."
- 190 restore: read total, check#
- 200 open "R", #1, "A:errlev.com",1
- 210 field #1,1 as N$
- 220 for I=1 to total: read byte: lset N$=chr$(byte): put #1: next I
- 230 close: print "errlev.com created"
- 240 key on: end :system
- 250 data 138, 8759
- 260 data 30, 51, 192, 80, 190, 128, 0, 252, 51, 201, 138, 12, 70, 191, 58, 1
- 270 data 243, 164, 186, 58, 1, 180, 9, 205, 33, 184, 1, 12, 205, 33, 80, 178
- 280 data 13, 180, 2, 205, 33, 178, 10, 180, 2, 205, 33, 88, 60, 122, 119, 6
- 290 data 60, 97, 114, 2, 36, 223, 180, 76, 205, 33, 36, 36, 36, 36, 36, 36
- 300 data 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36
- 310 data 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36
- 320 data 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36
- 330 data 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36
- 340 data 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36